package br.unb.graphics.actions;

import br.unb.core.manager.Manager;
import br.unb.graphics.GraphicInterface;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

/**
 *
 * @author spider
 */
public class ResetGuiAction extends AbstractAction {

    public static final String resetAction = "reset";

    public ResetGuiAction() {
        super(resetAction);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        Manager.getInstance().stopAllTraffic();
        GraphicInterface.getInstance().resetTabs();
        Runtime.getRuntime().gc();
    }
}



